﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SurveyDiv.ascx.cs"
    Inherits="AKMII.DMRA.Web.Controls.SurveyDiv" %>
<div id="showBox" style="display:none;">
    <div id="msleft">
        <div class="divmassage">
            <div class="divheader">
                <div style="display: inline; width: 150px; position: absolute;">
                    Lead Responsability Aknowledgement
                </div>
            </div>
            <table cellpadding="0" width="100%" cellspacing="0" id="ItemListContentTable" class="leadtable">
                <tr class="ItemListHeaderRow">
                    <th colspan="2" class="BorderLeft">
                        &nbsp;
                    </th>
                </tr>
                <tr style="height: 30px">
                    <td align="left">
                        &nbsp; &nbsp;In an effort to adequately protect the privacy and security of Combined customer information, I affirm to the following:<br />
                        &nbsp; &nbsp;1.  Each agent in my market has been made aware that:<br />
                        &nbsp; &nbsp;o   Information on lead cards is confidential and should not be shared/copied; and<br />
                        &nbsp; &nbsp;o   All lead cards must be returned to the Market Director.<br />
                        &nbsp; &nbsp;2.  As Market Director, I have accounted for all lead cards that have been distributed to my sales team.<br />
                        &nbsp; &nbsp;I will report any instances where lead cards have not been accounted for to Field Compliance and my Divisional Office.
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 40px;" valign="middle" align="center">
                        <asp:Button ID="btnOK" runat="server" Text="OK"
                            CssClass="loginbuttonBtn" OnClick="btnUpdate_Click" CausesValidation="true" />
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        <asp:Button ID="btnCancel" runat="server" CausesValidation="false" Text="Cancel" CssClass="loginbuttonBtn"
                            OnClick="btnCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div id="alphaBox">
    </div>
</div>

<script type="text/javascript">
    //ChangePasswordDiv1_
    function EvaluatePassword(password) {
        if (password == "") {
            return 0;
        }
        else if (password.length < 8) {
            return 1;
        }
        else {
            return password.match(/[a-z](?![^a-z]*[a-z])|[A-Z](?![^A-Z]*[A-Z])|\d(?![^\d]*\d)|[^a-zA-Z\d](?![a-zA-Z\d]*[^a-zA-Z\d])/g).length;
        }
    }
    function CheckPasswordStrong(password) {
        if (EvaluatePassword(password) != 4) {
            document.getElementById("lbTip1").innerHTML = "You must input a strong password!";
            document.getElementById("lbTip1").style.color = "Red";
        }
        else {
            document.getElementById("lbTip1").innerHTML = "Pass";
            document.getElementById("lbTip1").style.color = "Green";
        }
    }

    function PasswordConsistent() {
        var pwd1 = document.getElementById("ChangePasswordDiv1_txtNewPassword");
        var pwd2 = document.getElementById("ChangePasswordDiv1_txtConfirmPassword");
        if (pwd1.value == "" || pwd2.value == "") {
            return false;
        }
        if (pwd1.value == pwd2.value) {
            return true;
        }
        else {
            document.getElementById("lbTip2").innerHTML = "The twice input password must be the same!";
            document.getElementById("lbTip2").style.color = "Red";
            return false;
        }
    }

    function CheckConfirmPassword() {
        if (PasswordConsistent()) {
            document.getElementById("lbTip2").innerHTML = "Pass";
            document.getElementById("lbTip2").style.color = "Green";
        }
        else {
            document.getElementById("lbTip2").innerHTML = "You must input the consistent confirm password!";
            document.getElementById("lbTip2").style.color = "Red";
        }
    }

    function CheckAllPassword() {
        var pwd1 = document.getElementById("ChangePasswordDiv1_txtNewPassword");
        var pwd2 = document.getElementById("ChangePasswordDiv1_txtConfirmPassword");
        if (EvaluatePassword(pwd1.value) != 4) {

            return false;
        }
        if (!PasswordConsistent()) {
            return false;
        }
    }
    function boxAlpha() {
        var showBox = document.getElementById("showBox");
        var bgalpaha = document.getElementById("alphaBox");
        var content = document.getElementById("content");
        if (showBox.style.display == "none") {
            showBox.style.display = "block";
            showBox.style.height = document.documentElement.scrollHeight;
            bgalpaha.style.height = document.documentElement.scrollHeight + "px";
            if (document.body.scrollHeight < 860)
                bgalpaha.style.height = "863px";
            if (navigator.appName == "Microsoft Internet Explorer")
                bgalpaha.style.width = document.documentElement.scrollWidth + "px";
            else
                bgalpaha.style.width = document.documentElement.scrollWidth + "px";
        }
        else
            showBox.style.display = "none";
    }
    boxAlpha();
</script>

<style type="text/css">
    #showBox
    {
        font-size: 12px position: absolute;
        left: 0;
        top: 0;
        z-index: 99;
        width: 100%;
        height: 100%;
    }
    #msleft
    {
        filter: dropshadow(color=#666666,offx=3,offy=3,positive=2);
        position: absolute;
        left: 360px;
        top: 160px;
        z-index: 1002;
        width: 600px;
        height: 400px;
    }
    #alphaBox
    {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1000;
        width: 100%;
        height: 100%;
        background: #c9c9c9;
        filter: alpha(opacity=60);
        opacity: 0.6;
        -moz-opacity: 0.6;
    }
    .divmassage
    {
        border: #1785cd solid;
        border-width: 1 1 3 1;
        width: 95%;
        height: 95%;
        background: #fff;
        color: #036;
        line-height: 150%;
    }
    .divheader
    {
        background: #1785cd;
        height: 10%;
        padding: 3 5 0 5;
        color: #fff;
    }
</style>
